package com.chuangshi.core.vote.admin.entity;

import com.chuangshi.core.kit.Entity;
import com.chuangshi.core.kit.Request;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;


/**
 * 管理员信息
 *
 * @author ggliming
 * @date 2019-02-21
 */
@Component
@Document(collection = "admin_info")
public class Admin extends Entity {

    public Admin() {

    }

    public Admin(Request request) {
        this.copy(request);
    }

    /**
     * 管理员编号
     */
    @Id
    @Field
    private String adminId;

    /**
     * 管理员用户编号
     */
    @Field
    private String adminUserId;

    /**
     * 账号名称
     */
    @Field
    private String adminAccount;

    /**
     * 账号密码
     */
    @Field
    private String adminPassword;


    public String getAdminId() {
        return adminId;
    }

    public void setAdminId(String adminId) {
        this.adminId = adminId;
    }

    public String getAdminUserId() {
        return adminUserId;
    }

    public void setAdminUserId(String adminUserId) {
        this.adminUserId = adminUserId;
    }

    public String getAdminAccount() {
        return adminAccount;
    }

    public void setAdminAccount(String adminAccount) {
        this.adminAccount = adminAccount;
    }

    public String getAdminPassword() {
        return adminPassword;
    }

    public void setAdminPassword(String adminPassword) {
        this.adminPassword = adminPassword;
    }

}